import request from "../request"

// 获取地址列表信息
function getAddressList(data) {
    return request({
        url: "/address/getListAction",
        data
    })
}
// 获取地址详细信息
function getAddressDetail(data) {
    return request({
        url: "/address/detailAction",
        data
    })
}

// 删除地址信息
function deleteAddress(data) {
    return request({
        url: "/address/deleteAction",
        data
    })
}

// 保存地址信息
function saveAddress(data) {
    return request({
        method: 'post',
        url: "/address/saveAction",
        data
    })
}


export {
    getAddressList,
    deleteAddress,
    saveAddress,
    getAddressDetail
}